package edu.gu.hajo.gcl.cmd.impl;

import edu.gu.hajo.gcl.exception.ExecException;
import edu.gu.hajo.gcl.interp.IInterpreter;


public final class PutsCmd extends AbstractCmd {

	public PutsCmd(IInterpreter interp) {
		super(interp);
	}

	public void  execute() {
		if( args.size() != 1){
			throw new ExecException("puts: Wrong # args");
		}
		System.out.println(args.get(0));
		interp.setResult("");		 
	}
}
